import request from '@/utils/request'

// 获取简历列表
export function getResumeList(params) {
  return request({
    url: '/hr/resume/list',
    method: 'get',
    params
  })
}

// 获取简历详情
export function getResumeDetail(id) {
  return request({
    url: `/hr/resume/${id}`,
    method: 'get'
  })
}

// 创建简历
export function createResume(data) {
  return request({
    url: '/hr/resume',
    method: 'post',
    data
  })
}

// 更新简历
export function updateResume(id, data) {
  return request({
    url: `/hr/resume/${id}`,
    method: 'put',
    data
  })
}

// 删除简历
export function deleteResume(id) {
  return request({
    url: `/hr/resume/${id}`,
    method: 'delete'
  })
}